package com.lg.erp.service.impl.ligen;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lg.erp.entity.yqy.TProduct;
import com.lg.erp.mapper.ligen.LGProductMapper;
import com.lg.erp.service.ligen.LGProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lg
 * @since 2021-04-25
 */
@Service
public class LGProductServiceImpl extends ServiceImpl<LGProductMapper, TProduct> implements LGProductService {

    @Autowired
    private LGProductMapper lgProductMapper;
    @Override
    public IPage<TProduct> getProductByPageAndCompanyId(Page<TProduct> page,String companyId) {
        return lgProductMapper.selectProductByPageAndCompanyId(page,companyId);
    }
}
